package com.bolun998300.personal_blog_springboot.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@Table(name="bbs")
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
public class Bbs {
	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="id")
	private int id;
	
	@Column(name="bbs_content")
	private String bbsContent;
	
	@Column(name="bbs_date")
	private Date bbsDate;
	@Column(name="bbs_state")
	private int bbsState;
	@Column(name="bbs_userIp")
	private String bbsUserIp;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getBbsContent() {
		return bbsContent;
	}
	public void setBbsContent(String bbsContent) {
		this.bbsContent = bbsContent;
	}
	public Date getBbsDate() {
		return bbsDate;
	}
	public void setBbsDate(Date bbsDate) {
		this.bbsDate = bbsDate;
	}
	public int getBbsState() {
		return bbsState;
	}
	public void setBbsState(int bbsState) {
		this.bbsState = bbsState;
	}
	public String getBbsUserIp() {
		return bbsUserIp;
	}
	public void setBbsUserIp(String bbsUserIp) {
		this.bbsUserIp = bbsUserIp;
	}

	
	
	
}
